import request from '@/utils/request'

// 获取用户数据
export const getUserData = () => request.get('/user')
// 获取收藏列表
export const getCollectionList = () => request.get('/user/favorites')
// 获取我的出租
export const getmylease = () => request.get('user/houses')
// 获取城市列表
export const getcitylist = data => request.get('/area/city', { params: { level: 1 } })
// 获取热门城市列表
export const gethot = () => request.get('area/hot')
// 小区关键字查询
export const community = () => request.get('area/community', {
  params: { name: '北京', id: 'AREA|88cff55c-aaa4-e2e0' }
})
